package designPattern.Builder;

/**
 * @author ldy
 * @data 2022/11/9
 * @description
 */
public class Test {
    public static void main(String[] args) {
        PersonDirector pd = new PersonDirector();//Person对象的整体构造器
        Person person = pd.constructPerson(new ManBuilder());//
        System.out.println(person.getBody());
        System.out.println(person.getFoot());
        System.out.println(person.getHead());
    }
}
